package com.dayuanit.dao;

import com.dayuanit.entity.EquipmentPlan;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface EquipmentPlanDao {


    /**
     * 计算数量
     * @param planName
     * @param equipmentName
     * @return
     */
    Integer countByPlanNameOrEquipmentName(@Param("planName") String planName, @Param("equipmentName") String equipmentName);

    /**
     * 分页查询
     * @param planName
     * @param equipmentName
     * @param limitStart
     * @param limitEnd
     * @return
     */
    List<EquipmentPlan> queryPlanPage(@Param("planName")String planName, @Param("equipmentName") String equipmentName,
                                      @Param("row") Integer limitStart,@Param("rowSize") Integer limitEnd);

    /**
     * 新增计划
     * @param plan
     */
    void insert(EquipmentPlan plan);

    /**
     * 批量删除
     * @param idList
     */
    void batchRemove(List<Long> idList);
}
